<?php $this->headLink()->appendStylesheet($this->dirCss.'/mainstyle.css'); ?>
<?php echo $this->render('common/header.phtml'); ?>
<?php if($this->beginSearch == true){ ?>
    <div id="main-wrapper">
    
		<div id="wrapper-content">
            
            <form name="searchcv" id="searchcv" method="post" action="">
            	<div class="searchcv-title">
                	Search Resume 
                	<span style="float:right; margin-right:110px; margin-top:-5px;">
                    	<img align="top" src="<?php echo $this->dirImg.'/searchbtn.png' ?>" alt="" />
                    </span>
                </div>
                
                <label class="left-short">Key words</label> 
                <span class="searchcv-right">
                	<input class="input-long" name="keywords" type="text" />
                </span>
                
                <label style="float:left; width:70px; clear:left;">&nbsp;</label>
              <span style="margin-top:-5px; float:left">
                	<img align="left" id="search-img" src="<?php echo $this->dirImg.'/unchecked.png'; ?>" alt="" />
                    <input type="checkbox" name="search-exactly" id="search-exactly" style="display:none" />
                    <label id="search-exactly-img" style="float:left; margin-left:5px; margin-top:3px;">Search for the exact wording or phrase I entered.</label>
                </span>
                <label class="left-short">Gender</label> 
                
                <span class="searchcv-right">	
                	<select name="gender">
                    	<option value="any">Any</option>
                        <option value="male">Male</option>
                        <option value="female">Female</option>
                    </select>
                </span>
                
                <label class="left-long">Years of Experiences</label>
                <span class="searchcv-right">
                	<input style="width:131px" name="experience" type="text" />
                </span>
                
                <label class="left-short">Location</label> 
                <span class="searchcv-right">
                	<select name="location" style="width:196px;">
                    	<?php echo $this->locationList ?>
                    </select>
                	<!-- <input style="width:196px;" name="location" type="text" /> -->
                    <span class="addmore" >Add another Location</span>
                </span>
                
                <label class="left-long">Resumes Updated</label>
                <span class="searchcv-right">
                	<select name="salary-update-range" class="select150">
                    	<?php echo $this->cvUpdateRange; ?>
                	</select>
                </span>
                
               	<label class="left-long">Language</label>
                <span class="searchcv-right">
                	<select name="language" class="select150">
                    	<?php echo $this->languageList; ?>
                	</select>
                </span>
                
                <label class="left-short">Salary</label>
                <!--
                <span class="searchcv-right">
                	<select name="salary-range">
                    	<?php //echo $this->salaryRange; ?>
                	</select>
                </span>
                -->
                   
                
                <div class="searchcv-right searchcv-right-salary">
                    From <input type="text" name="salaryfrom" />
                    To <input type="text" name="salaryto" /> (USD/month)
                </div>
               
                <label class="left-short">&nbsp;</label>
                <span class="searchcv-right searchcv-button">
                 	<input type="image" src="<?php echo $this->dirImg.'/search-btn.png' ?>" alt="SUBMIT" />
                </span>
            </form>
            
       

<script type="application/javascript">
	$(document).ready(function(e) {
        var checked = <?php echo '"'.$this->baseUrl('/public/templates/employer/default/images/checked.png').'"'; ?>;
		var unchecked = <?php echo '"'.$this->baseUrl('/public/templates/employer/default/images/unchecked.png').'"'; ?>;
		
		$('#search-img').click(function(){
			var src = $(this).attr('src');
			if( src == unchecked){
				$(this).attr('src',checked);
				$('#checkbox_weekly').attr('checked',false);//Cập nhật image search exactly
				$('#search-exactly').attr('checked','checked');//Cập nhật lại checkbox
			}else{
				$(this).attr('src',unchecked);
				$('#checkbox_weekly').attr('checked',false);//Cập nhật image search exactly
				$('#search-exactly').attr('checked',false);//Cập nhật lại checkbox
			}//END else
		});//END #search-img click
    });
</script>
<?php }else{
?>
<?php $this->headLink()->appendStylesheet($this->dirCss.'/searchcvresult.css'); ?>
<?php }?>
	
 		</div><!-- END #wrapper-content -->
    </div><!-- END #main-wrapper -->
<?php echo $this->render('common/footer.phtml'); ?>

